package com.atomgit.ai.proxy.mapper;

import com.atomgit.ai.proxy.entity.ModelInfo;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import java.util.List;

@Mapper
public interface ModelInfoMapper extends BaseMapper<ModelInfo>{

    /**
     * 查询未删除且处于开启状态的模型信息
     * @return
     */
    @Select("select * from model_info where deleted = 0 and status = 1")
    List<ModelInfo> selectAll();
}
